<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<fieldset><legend>患者详细资料</legend>
<table class="list">
	<thead>
		<tr>
			<th colspan="8" width="100%">治疗前</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class="right">空腹血糖：</td>
			<td class="left"><c:out
				value="${patient.pretreat.emptyBloodSugar}" />&nbsp;mmol/L</td>
			<td class="right">餐后2H血糖：</td>
			<td class="left"><c:out
				value="${patient.pretreat.twoHourBloodSugar}" />&nbsp;mmol/L</td>
			<td class="right">总胆固醇：</td>
			<td class="left"><c:out value="${patient.pretreat.cholesterol}" />&nbsp;mmol/L</td>
			<td class="right">甘油三脂：</td>
			<td class="left"><c:out value="${patient.pretreat.triglyceride}" />&nbsp;mmol/L</td>
		</tr>
		<tr>
			<td class="right">尿&nbsp;&nbsp;&nbsp;糖：</td>
			<td class="left"><c:out value="${patient.pretreat.urineSugar}" />&nbsp;(+)</td>
			<td class="right">酮&nbsp;&nbsp;&nbsp;体：</td>
			<td class="left"><c:out value="${patient.pretreat.ketone}" />&nbsp;(+)</td>
			<td class="right">尿蛋白：</td>
			<td class="left"><c:out value="${patient.pretreat.urineProtein}" />&nbsp;(+)</td>
			<td class="right">尿白细胞：</td>
			<td class="left"><c:out
				value="${patient.pretreat.urineLeucocyte}" />&nbsp;(+)</td>
		</tr>
	</tbody>
</table>
<table class="list">
	<thead>
		<tr>
			<th>药物</th>
			<th>用量</th>
			<th>早</th>
			<th>中</th>
			<th>晚</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${patient.predrugs}" var="predrug"
			varStatus="varStatus">
			<c:set var="tr_class"
				value="${varStatus.index % 2 == 0 ? 'odd' : 'even'}" />
			<tr class="${tr_class}">
				<td><c:out value="${predrug.drugName}" />&nbsp;</td>
				<td><c:out value="${predrug.drugDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${predrug.morningDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${predrug.noonDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${predrug.nightDose}" />&nbsp;片（粒）</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<table class="list">
	<thead>
		<tr>
			<th>胰岛素</th>
			<th>早</th>
			<th>中</th>
			<th>晚</th>
			<th>睡前</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td><c:out value="${patient.pretreat.insulinDrugName}" />&nbsp;</td>
			<td><c:out value="${patient.pretreat.morningInsulinDose}" />&nbsp;片（粒）</td>
			<td><c:out value="${patient.pretreat.noonInsulinDose}" />&nbsp;片（粒）</td>
			<td><c:out value="${patient.pretreat.nightInsulinDose}" />&nbsp;片（粒）</td>
			<td><c:out value="${patient.pretreat.bedtimeInsulinDose}" />&nbsp;片（粒）</td>
		</tr>
	</tbody>
</table>
</fieldset>
<div style="text-align: center;height: 25px;"><a class="submit"
	href="${ctx}/pretreat/edit.do?patientId=${patient.patientId}">修&nbsp;&nbsp;&nbsp;改</a>
</div>